package com.aaa.demo11;

import java.util.function.Consumer;

/**
 * @author ${崔灿}
 * @date 2022/11/03 20:12
 **/

public class TestConsumer {
    public static void main(String[] args) {
        Consumer<Double> c = a->{
            System.out.println("吃饭花了"+a);
        };
        fun(c,100.2);
    }

    public static void fun(Consumer<Double> c, double v) {
        c.accept(v);
    }
}
